﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmInsumos.aspx.cs" Inherits="Box.Cliente.Logistica.Insumos.frmInsumos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 30px;
        }
        .auto-style2 {
            height: 34px;
        }
        .auto-style3 {
            height: 32px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
 <div class="col-md-12">     
       <div class="panel panel-primary">
                <div class="panel-heading">
                                    <h3>Información de Insumos</h3>
                </div>
                <div class="panel-body">
                   <table class="table">
                        
                        <asp:TextBox ReadOnly="True" CssClass="form-control input-sm"  Visible="false" runat="server" ID="txtId" />
                        <tr>
                            <td ><label>Nombre*</label></td>
                            <td ><asp:TextBox CssClass="form-control input-sm" MaxLength="100" runat="server" placeholder="Ejem. Botones" ID="txtNombre"  class="form-control" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNombre" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator>
                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" TargetControlID="txtNombre" FilterType="LowercaseLetters,custom" ValidChars="-,/" runat="server"></ajaxToolkit:FilteredTextBoxExtender>

                            </td>
                              
                            
                            <td></td>
                       
                             <td ><label>Descripción</label></td>
                            <td ><asp:TextBox CssClass="form-control input-sm" placeholder="Descripción del Insumo" runat="server" ID="txtDescripcion"   class="form-control" /></td>

                        </tr>
                        
                       <tr>
                            <td><label>Und. Medida*</label></td>
                           <td>
                             <asp:DropDownList 
                             CssClass="form-control input-sm"
                             ID="ddlUnidadMedida"
                             runat="server"
                             Width="250">
                                 <asp:ListItem>Unidad</asp:ListItem>
                                 <asp:ListItem>Par</asp:ListItem>
                                 <asp:ListItem>Docena</asp:ListItem>
                                 <asp:ListItem>Metro</asp:ListItem>
                                 <asp:ListItem>Juego</asp:ListItem>
                               </asp:DropDownList>
                           </td>                           
                            <td></td>
                            <td><label>Marca*</label></td>
                            <td>
                             <asp:DropDownList 
                             CssClass="form-control input-sm"
                             ID="ddlMarca"
                             ItemType="Box.Entities.Marca"
                             DataTextField="NombreMarca"
                             DataValueField="Id"
                             runat="server"
                             SelectMethod="GetAllMarca"  class="form-control"/> 
                            </td>                            
                            <td></td>
                      </tr>
                        <tr>
                            <td><label>Precio Sugerido*</label></td>
                            <td><asp:TextBox runat="server" CssClass="form-control input-sm" ID="txtPrecio" MaxLength="6" placeholder="Ejem. 23.00"  class="form-control"/>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPrecio" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" TargetControlID="txtPrecio" FilterType="Numbers, Custom" ValidChars="."  runat="server"></ajaxToolkit:FilteredTextBoxExtender>
                            </td>                             
                              <td></td>
                        </tr>
                    </table>
                </div>
                <div class="panel-footer">
                    <asp:Button ID="btnGuardar" Text="Guardar" CssClass="btn btn-success" runat="server" OnClick="btnGuardar_Click" />
                    <asp:Button runat="server" ID="btnLimpiar" CssClass="btn btn-danger" Text="Atrás" OnClick="btnLimpiar_Click" OnClientClick="return confirm('Desea  salir a Listar Insumos');"/>
                  
                </div>

            </div>
        </div>
</asp:Content>
